{*include file="template/admin_head.htm"*}
<table width="100%" cellpadding="0" cellspacing="0" id="containtable" class="{*$cf_controller*}">
    <tr>
        <td width="220" valign="top" bgcolor="#FFFFFF">
            {*include file="template/admin_left.htm"*}
        </td>
        <td valign="top" bgcolor="#FFFFFF">
            <div class="wrapper pr_8">
                {*if $cf_action=='add' || $cf_action=='edit'*}
                <link href="public/js/jquery/css/uploadify.css" rel="stylesheet" type="text/css" />
			<script type="text/javascript" src="public/js/jquery/jquery.uploadify.js"></script>
            <script type="text/javascript" src="public/js/swfobject.js"></script>
            <script type="text/javascript" src="info/localdata_teacher.js" ></script>
            
                
               <script type="text/javascript">
			   		   
			   function sfun(msg){
                        if(msg){
							show_filelist('{*$row.act_file*}',"#file_list","#file_part");
                        }
                    }
                $(document).ready(function() {
					show_filelist('{*$row.file_content*}',"#file_list","#file_part");
					$("#uploadify").uploadify({
						'uploader'      : 'public/flash/uploadify.swf',
						'script'        : '/admin/file.htm',
						'cancelImg'     : 'public/images/admin/cancel.png',
						'folder'        : 'public/upload',
						'fileExt'		: '*.jpg;*.jpeg;*.gif;*.png;*.pdf;*.txt;*.doc;*.xls;*.rtf;*.ppt;*.docx;*.xlsx;*.pptx',
						'sizeLimit'		: '1024000',
						//'fileDesc'		: 'Image Files',
						//'queueID'       : 'fileQueue',					//这行与div同时消失时,显示条在上传按键下方
						'auto'          : false,
						'multi'         : true,
						'buttonText'	: '请选择上传的文件',
						'scriptData'	: {'PHPSESSID':'{*$sessionid*}','act':'upphoto'},
						'onError' : function (a, b, c, d) {
							if (d.status == 404)
							alert('上傳出錯,地址不存在!');
							else if (d.type === "HTTP")
							alert('error '+d.type+": "+d.info);
							else if (d.type ==="File Size")
							alert('文件必須小於 1024 KB');
							//alert(c.name+' '+d.type+' Limit: 500 KB');
							else
							alert('error '+d.type+": "+d.info);
						},
						'onComplete'	:function(event, queueID, fileObj,response) {
								if(response){
									var oldfile = $("#act_file").val();
									if(oldfile){
										$("#act_file").val(oldfile+','+response)
									}else{
										$("#act_file").val(response);
									}
									//add_more(idnum,'#photo',response);
									//alert(response);
									}else{
										alert('上传失败');
									}
								},
						'onAllComplete'	: function(event, data) {
							if(data.errors=='0' && data.filesUploaded>0){
								alert('成功上传 '+data.filesUploaded+' 个文件 ');
								//var filename = $("#act_file").attr("value");								
							    show_filelist($("#act_file").val(),"#file_list","#file_part");
								//alert($("#act_file").val());								
								//$("#list_form").submit();
							}else{
								alert('上传失败');
								//alert("共上传文件数"+ data.filesUploaded +" 失败文件数:" +data.errors );
							}
						}
						
					});
					
					$("#up").click(function(){
						$('#uploadify').uploadifyUpload();
					});
					$("#cancle").click(function(){
						$('#uploadify').uploadifyClearQueue()
					});

					$("#add").click(function(){
						//add_more('0',#photo','aa');
					});
					
					//show_photo('{*$row.act_file*}',"#photo_list","#photo_part");
					check_act_type('{*$row.act_type*}');
					
					
					$("#del_file").click(function(){
						if(!confirm('你确定要删除吗?'))
						return false;
						myajax("admin/file.htm?act=delfile&value="+ajax_encode($("#act_file").val()),"sfun(msg)");
						$("#act_file").val("");//清空先前的上传的文件名
					});
					
					//验证文件提交表单
					$("#file_form").submit(function(){
						if($("#file_folder").val()=='0'){
                           my_alert('请选择上传的文件夾','操作提示',"$('#file_folder').focus()");
                            return false;
                           }
						if($("#file_title").val()==''){
                           my_alert('请输入标题','操作提示',"$('#file_title').focus()");
                            return false;
                           }
						 						   
						   
						if($("#file_type").val()< 0){
                           my_alert('请选择文件类型','操作提示',"$('#file_type').focus()");
                            return false;
                           }
						   
						if($("#file_introduction").val()==''){
                           my_alert('请输入简介','操作提示',"$('#file_introduction').focus()");
                            return false;
                           }
						
						if($("#act_file").val()==''){
                           my_alert('请上传文件','操作提示',"$('#act_file').focus()");
                            return false;
                           }
						});
					
				});

				
            </script>

                <div class="content_panel_title">
                    <div class="contentpanelleft"></div>
                    <div class="contentpanelcenter">
                        <span class="contentpanelcenter_font">新增/修改文件</span>
                        <span><a class="edit at" href="{*$cf_self_page*}?dpt={*$cf_dpt*}">文件管理</a></span>
                    </div>
                    <div class="contentpanelrihgt"></div>
                </div>
                <div class="content_table_center_style">
                    <div class="p8">

                    <form name="file_form" id="file_form" method="post" action="{*$cf_self_page*}">
                        <input name="id" id="id" type="hidden" value="{*$row.file_id*}" />
                        <input name="dpt" id="dpt" type="hidden" value="{*$cf_dpt*}" />
                        <input name="act" id="act" type="hidden" value="{*$cf_action*}" />
                        {*if $row.file_folder*}
                        {*assign var=selected value=$row.file_folder*}
                        {*else*}
                        {*assign var=selected value=$folder_id*}
                        {*/if*}
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbl tbl_nbr">
                          <tr>
                            <td align="right">目标文件夹:</td>
                            <td><select name="file_folder" id="file_folder">{*html_options options=$folder_ary selected=$selected*}</select><span class="red">*</span></td>
                          </tr>
                          <tr>
                            <td align="right">主題:</td>
                            <td><label for="textfield"></label>
                            <input type="text" name="file_title" id="file_title" value="{*$row.file_title*}" size="40" maxlength="60" /><span class="red">*</span></td>
                          </tr>
                           <tr>
                            <td align="right">上傳文件类型:</td>
                            <td><label for="textfield"></label>
                           {*html_options name="file_type" options=$cf_info_var_common.file_type selected=$row.file_type*}<span class="red">*</span>
                            </td>
                          </tr>
                          
                          <tr>
                            <td align="right">上傳文件簡介:</td>
                            <td><label for="textarea"></label>
                            <textarea name="file_introduction" id="file_introduction" cols="60" rows="5">{*$row.file_introduction*}</textarea><span class="red">*</span></td>
                          </tr>
                          <tr>
                            <td align="right">備註:</td>
                            <td><label for="textarea2"></label>
                            <textarea name="file_remark" id="file_remark" cols="60" rows="5">{*$row.file_remark*}</textarea></td>
                          </tr>
                          
                           <tr id="file_part">
                                  <td align="right">已上傳文件:</td>
                                  <td colspan="3" align="left"><div id="file_list"></div><input type="button" id="del_file" name="del_file" value="删除文件" class="myinput1"  /></td>
                           </tr>
                          
                          
                          <tr>
                            <td align="right">文件:</td>
                      <td><input type="hidden" name="act_file" id="act_file" value="{*$row.file_content*}" />
                                  	<div class="clearfix">
                                  			<div class="fl"><input type="file" name="uploadify" id="uploadify" /></div>
                                            <div class="fl p8"><input type="button" id="up" name="up" value="點擊上傳" class="myinput1"  />
                                      </div>
                                  	</div>                    </td>
                          </tr>
                          <tr>
                            <td colspan="2" align="center"><input type="submit" name="Submit" value="提 交" class="myinput" />
                                        &nbsp;&nbsp;
                                        <input type="button" name="back" value="返 回" onclick="window.history.back()" class="myinput" /></td>
                          </tr>
                        </table>

                  </form>
                 </div>
                </div>
                <div class="content_main_bottom">
                    <div class="content_main_bottom_left"></div>
                    <div class="content_main_bottom_right"></div>
                </div>
                
                {*elseif $cf_action=='detail'*}    
                            
                <div class="content_panel_title">
                    <div class="contentpanelleft"></div>
                    <div class="contentpanelcenter">
                        <span class="contentpanelcenter_font">文件詳細內容</span>
                    </div>
                    <div class="contentpanelrihgt"></div>
                </div>
                <div class="content_table_center_style">
                    <div class="p8">

                    <form name="aac_form" id="aac_form" method="post" action="{*$cf_self_page*}">
                        <input type="hidden" id="act" name="act" value="check" />
                        <input type="hidden" name="id" value="{*$row.ac_id*}" />
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbl tbl_nbr">
                            <tbody>
                                <tr>
                                  <td class="stitle" colspan="4">文件管理資訊</td>
                                </tr>
                                

                                <tr>
                                    <td align="right" width="20%" >主題:</td>
                                    <td colspan="3" align="left">{*$row.file_title*}</td>
                                    
                                <tr>
                                  <tr>
                                    <td align="right" width="20%" >文件类型:</td>
                                    <td colspan="3" align="left">{*assign var="type_val1" value=$row.file_type *}{*$cf_info_var_common.file_type.$type_val1*}</td>
                                    
                                <tr>
                                 <tr>
                                    <td align="right" width="20%" >文件簡介:</td>
                                    <td colspan="3" align="left">{*$row.file_introduction*}</td>
                                    
                                <tr>
                                 <tr>
                                    <td align="right" width="20%" >備註:</td>
                                    <td colspan="3" align="left">{*$row.file_remark*}</td>
                                 </tr>
                                 
                                <tr>
                                    <td align="right" width="20%">發佈(分配)人:</td>
                                    <td width="30%" align="left">{*$row.file_creator*}</td>
                                    <td align="right" width="20%">發佈時間:</td>
                                    <td align="left" width="30%">{*$row.file_create_time*}</td>
                                </tr>
                                <tr>
                                    <td align="right" width="20%" >最後修改:</td>
                                    <td colspan="3" align="left">{*$row.file_edit_info*}</td>
                                    
                                </tr>   
                                <tr>
                                    <td colspan="4" class="stitle">上传文件詳情</td>
                                </tr>
                                <tr>
                                    <td align="right" width="20%" >已上傳文件:</td>
                                    <td colspan="3" align="left">
                                     <ul>
                                     <li><b style="width:150px; display:inline-block; text-align:center">文件名稱</b><b style="width:130px; display:inline-block; text-align:center">操作</b></li>
                                     {*foreach from=$file_name item=foo*}
                                     <li><span style="width:200px; display:inline-block;"><a href="public/upload/files/{*$foo[0]*}" target="new">{*$foo[1]*}</a></span><span><a href="public/upload/files/{*$foo[0]*}" target="new">下载</a></span></li>
                                     {*/foreach*}
                                     </ul>
                                    </td>
                                    
                                </tr>
                                
                                <tr>
                                    <td colspan="4" align="center"> <input type="button" name="back" value="返 回" onclick="window.location.href='{*$cf_self_page*}?dpt={*$cf_dpt*}&act=open&id={*$folder_id*}'" class="myinput" /></td>
                                </tr>
                            </tbody>
                        </table>
                  </form>
                </div>
                </div>
                <div class="content_main_bottom">
                    <div class="content_main_bottom_left"></div>
                    <div class="content_main_bottom_right"></div>
                </div>
                 {*elseif $cf_action=='open'*}    
                            
                <div class="content_panel_title">
                    <div class="contentpanelleft"></div>
                    <div class="contentpanelcenter">
                        <span class="contentpanelcenter_font">文件夹詳細內容</span>
                        <span><a href="javascript:void(0)" onclick="window.location.href='{*$cf_self_page*}?dpt={*$cf_dpt*}'" class="edit at">返回</a></span>
                   		<span><a class="edit at at1" href="{*$cf_self_path*}-act_add_folder_{*$folder_id*}.htm?dpt={*$cf_dpt*}">新增文件</a></span>
                    </div>
                    <div class="contentpanelrihgt"></div>
                </div>
                <div class="content_table_center_style">
                    <div class="p8">

                    <form name="aac_form" id="aac_form" method="post" action="{*$cf_self_page*}">
                        <input type="hidden" id="act" name="act" value="check" />
                        <input type="hidden" name="id" value="{*$row.ac_id*}" />
                        <table width="100%" class="tbl tbl_nbr">
                            <thead>
                                <tr class="thd">
                                  <td align="center">选择</td>
                                  <td align="center" class="thr">ID</td>
                                  <td align="center" class="thr">主題</td>
                                  <td align="center" class="thr">文件类型</td>
                                  <td align="center" class="thr">文件簡介</td>
                                  <td align="center" class="thr">備註</td>
                                  <td colspan="3" align="center" class="thr">操作</td>
                                </tr>
                            </thead>
                            <tbody>
                                {*foreach name=ac_part item=item from=$data_ary*}
                                {*assign var=type value=$item.ac_type*}
                                {*assign var=industry value=$item.ac_industry*}

                              <tr onmouseout="this.style.backgroundColor='#ffF'" onmouseover="this.style.backgroundColor='#ffC'" style=" background-color:#FFFFFF">
                                    <td align="center"><input type="checkbox" name="idlist[]" value="{*$item.file_id*}" style="height:15px;" /></td>
                                    <td align="center">{*$item.file_id*}</td>
                                    <td align="left"><a href="{*$cf_self_path*}-act_detail_id_{*$item.file_id*}_folder_{*$folder_id*}.htm?dpt={*$cf_dpt*}" class="edit">{*$item.file_title*}</a></td>
                                    <td align="center">{*assign var="file_var2" value=$item.file_type*}{*$cf_info_var_common.file_type.$file_var2*}</td>
                                    <td align="center">{*$item.file_introduction*}</td>                                    
                                    <td align="center">{*$item.file_remark*}</td>
                                    <td width="5%" align="center"><a href="{*$cf_self_path*}-act_detail_id_{*$item.file_id*}_folder_{*$folder_id*}.htm?dpt={*$cf_dpt*}" class="edit">詳細</a><!--<a href="javascript:void(0)" title="查看詳情" onclick="$(function(){my_iframe('admin/lead-act_detail.htm?id={*$item.ac_id*}','查看詳情',900,500)})" class="edit">詳情</a>--></td>
                                    <td width="5%" align="center"><a href="{*$cf_self_path*}-act_edit_id_{*$item.file_id*}.htm?dpt={*$cf_dpt*}" class="edit">修改</a></td>
                                    <td width="5%" align="center"><a href="{*$cf_self_path*}-act_del_id_{*$item.file_id*}.htm?dpt={*$cf_dpt*}" class="del" onclick="return confirm('你确定要删除吗?')">删除</a></td>
                                </tr>
                                {*/foreach*}

                                <tr class="tft">
                                    <td colspan="10" style="padding:0;">
                                        <table width="100%" border="0">
                                            <tr>
                                                <td width="6%" align="center" style="border:0;padding:0;"><input type="button" name="checkall" id="checkall" class="myinput" value="全 选" /></td>
                                                <td width="22%" align="center" style="border:0;padding:0;">
                                                    <select name="alltype" id="alltype">
                                                        <option selected="selected" value="">操作選擇</option>
                                                        <option value="alldel">删除</option>
                                                    </select>
                                                    &nbsp;<input type="submit" name="submit_all" id="submit_all" value="批量操作" class="myinput" /></td>
                                                <td width="72%" style="border:0;padding:0;" ><div class="turnPage"><p>{*$page*}</p></div></td>
                                            </tr>
                                        </table>                                </td>
                                </tr>
                            </tbody>
                        </table>
                  </form>
                </div>
                </div>
                <div class="content_main_bottom">
                    <div class="content_main_bottom_left"></div>
                    <div class="content_main_bottom_right"></div>
                </div>
                 
                {*else*}
               <!-- <div class="pannel">
                    <div class="pl"></div>
                    <div class="pr"></div>
                    <div class="pc1">
                        <form action="" method="post" id="search_form" name="search_form">
                            <input name="dpt" id="dpt" type="hidden" value="{*$cf_dpt*}" />
                            <div class="pt">
                      
                                標題:
                                <input name="skey" type="text" class="tet" id="skey" value="{*$skey*}" size="15" />
                                &nbsp;&nbsp;
                              <input type="image" src="public/images/admin/icon_search_btn.gif">
                            </div>
                        </form>
                    </div>
                </div>-->
              <script type="text/javascript">
                    $(function(){
                        
                        $("#checkall").toggle(
                        function(){
                            select_all("idlist[]",true);
                        },
                        function(){
                            select_all("idlist[]",false);
                        }
                    );
                        $("#list_form").submit(function(){
                            if(!count_select("idlist[]")){
                                my_alert('请選擇id記錄','錯誤提示');
                                return false;
                            };
                            if($("#alltype").val()==''){
                                my_alert('请選擇操作方式','錯誤提示',"$('#alltype').focus()");
                                return false;
                            };
                            if(confirm('確定進行操作?')==false){
                                return false;
                            }
                            return true;
                        });
                    });

                </script>
                <div class="content_panel_title">
                    <div class="contentpanelleft"></div>
                    <div class="contentpanelcenter">
                        <span class="contentpanelcenter_font">文件管理<!--<b class="sybq"><em>名称索引:</em>{*foreach item=item key=key name=index from=$cf_info_var_common.index*}<a href="{*$cf_self_path*}-act_index.htm?dpt={*$cf_dpt*}&sindex={*$key*}&self={*$self*}">{*$item*}</a>|{*/foreach*}</b>--></span>
                        <span><a href="javascript:void(0)" title="新增文件夹" onclick="$(function(){my_iframe('admin/folder-act_add.htm','新增文件夹',600,400)})" class="edit at">新增文件夹</a></span>
                        <span><a class="edit at at1" href="{*$cf_self_path*}-act_add.htm?dpt={*$cf_dpt*}">新增文件</a></span>
                    </div>
                    <div class="contentpanelrihgt"></div>
                </div>
                <div class="content_table_center_style">
                    <div class="p8">
                        <form name="list_form" id="list_form" method="post" action="{*$cf_self_page*}">
                        <input name="act" type="hidden" value="all" />
                        <input name="self" type="hidden" value="{*$self*}" />
                        <table width="100%" cellspacing="0" cellpadding="0" class="tbl tbl_nbr">
                    <!--
                          <tr bgcolor="thd">
                            <td>id</td>
                            <td>标题</td>
                            <td>安全</td>
                            <td>序号</td>
                            <td>操作</td>
                          </tr>
                    -->
                    <thead>
                        <tr class="thd">
                            <td width="11%" align="center">id</td>
                            <td width="36%" align="center" class="thr">文件夹标题</td>
                            <td width="13%" align="center" class="thr">序号</td>
                            <td width="7%" align="center" class="thr">锁定</td>
                            <td width="8%" align="center" class="thr">共享</td>
                            <td width="25%" align="center" class="thr">操作</td>
                        </tr>
                    </thead>
                    {*foreach name=list key=key item=item from=$data_ary*}
                    {*assign var=lock value=$item.folder_lock*}
                    {*assign var=share value=$item.folder_share*}
                    <tr onmouseover="this.style.backgroundColor='#ffC'" onmouseout="this.style.backgroundColor='#ffF'">
                        <td align="center">{*$item.folder_id*}</td>
                        <td>{*if $share == '1'*}<img src="public/images/admin/foldershare.png" hspace="2" align="absmiddle" />{*else*}<img src="public/images/admin/folder.png" hspace="2" align="absmiddle" />{*/if*}<a href="{*$cf_self_path*}-act_open_id_{*$item.folder_id*}.htm?dpt={*$cf_dpt*}" class="edit">{*$item.folder_title*}</a></td>
                        <td align="center">{*$item.folder_order*}</td>
                        <td align="center"><a href="admin/folder-act_set_rid_{*$rid*}_id_{*$item.folder_id*}_type_lock_value_{*$item.folder_lock*}.htm">{*$cf_info_var.1.$lock*}</a></td>
                        <td align="center"><a href="admin/folder-act_set_rid_{*$rid*}_id_{*$item.folder_id*}_type_share_value_{*$item.folder_share*}.htm">{*$cf_info_var.2.$share*}</a></td>
                        <td align="center"><a href="{*$cf_self_path*}-act_open_id_{*$item.folder_id*}.htm?dpt={*$cf_dpt*}" class="edit">查阅</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:void(0)" title="新增子文件夹" onclick="$(function(){my_iframe('admin/folder-act_add_rid_{*$rid*}_id_{*$item.folder_id*}.htm','新增文件夹',600,400)})">新增子文件夹</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:void(0)" title="新增子文件夹" onclick="$(function(){my_iframe('admin/folder-act_edit_rid_{*$rid*}_id_{*$item.folder_id*}.htm','新增文件夹',600,400)})">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;<a class="del" href="admin/folder-act_del_rid_{*$rid*}_id_{*$item.folder_id*}.htm" onclick="return confirm('你确定要删除吗?')">删除</a></td>
                    </tr>
	     	{*foreach name=list2 key=key item=item2 from=$item.child*}
                    {*assign var=lock value=$item2.folder_lock*}
                    {*assign var=share value=$item2.folder_share*}
                    <tr onmouseover="this.style.backgroundColor='#ffC'" onmouseout="this.style.backgroundColor='#ffF'">
                        <td align="center">{*$item2.folder_id*}</td>
                        <td style="padding-left:20px">├{*if $share == '1'*}<img src="public/images/admin/foldershare.png" hspace="2" align="absmiddle" />{*else*}<img src="public/images/admin/folder.png" hspace="2" align="absmiddle" />{*/if*}<a href="{*$cf_self_path*}-act_open_id_{*$item2.folder_id*}.htm?dpt={*$cf_dpt*}" class="edit">{*$item2.folder_title*}</a></td>
                        <td align="center">{*$item2.folder_order*}</td>
                        <td align="center"><a href="admin/folder-act_set_rid_{*$rid*}_id_{*$item2.folder_id*}_type_lock_value_{*$item2.folder_lock*}.htm">{*$cf_info_var.1.$lock*}</a></td>
                        <td align="center"><a href="admin/folder-act_set_rid_{*$rid*}_id_{*$item2.folder_id*}_type_share_value_{*$item2.folder_share*}.htm">{*$cf_info_var.2.$share*}</a></td>
                        <td align="center"><a href="{*$cf_self_path*}-act_open_id_{*$item2.folder_id*}.htm?dpt={*$cf_dpt*}" class="edit">查阅</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:void(0)" title="新增子文件夹" onclick="$(function(){my_iframe('admin/folder-act_add_rid_{*$rid*}_id_{*$item2.folder_id*}.htm','新增文件夹',600,400)})">新增子文件夹</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:void(0)" title="新增子文件夹" onclick="$(function(){my_iframe('admin/folder-act_edit_rid_{*$rid*}_id_{*$item2.folder_id*}.htm','新增文件夹',600,400)})">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;<a class="del" href="admin/folder-act_del_rid_{*$rid*}_id_{*$item2.folder_id*}.htm" onclick="return confirm('确定要删除吗?')">删除</a></td>
                    </tr>
	      	{*foreach name=list3 key=key item=item3 from=$item2.child*}
              	{*assign var=lock value=$item3.folder_lock*}
                {*assign var=share value=$item3.folder_share*}
                    <tr onmouseover="this.style.backgroundColor='#ffC'" onmouseout="this.style.backgroundColor='#ffF'">
                        <td align="center">{*$item3.folder_id*}</td>
                        <td style="padding-left:40px">├{*if $share == '1'*}<img src="public/images/admin/foldershare.png" hspace="2" align="absmiddle" />{*else*}<img src="public/images/admin/folder.png" hspace="2" align="absmiddle" />{*/if*}<a href="{*$cf_self_path*}-act_open_id_{*$item3.folder_id*}.htm?dpt={*$cf_dpt*}" class="edit">{*$item3.folder_title*}</a></td>
                        <td align="center">{*$item3.folder_order*}</td>
                        <td align="center"><a href="admin/folder-act_set_rid_{*$rid*}_id_{*$item3.folder_id*}_type_lock_value_{*$item3.folder_lock*}.htm">{*$cf_info_var.1.$lock*}</a></td>
                        <td align="center"><a href="admin/folder-act_set_rid_{*$rid*}_id_{*$item3.folder_id*}_type_share_value_{*$item3.folder_share*}.htm">{*$cf_info_var.2.$share*}</a></td>
                        <td align="center"><a href="{*$cf_self_path*}-act_open_id_{*$item3.folder_id*}.htm?dpt={*$cf_dpt*}" class="edit">查阅</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:void(0)" title="新增子文件夹" onclick="$(function(){my_iframe('admin/folder-act_add_rid_{*$rid*}_id_{*$item3.folder_id*}.htm','新增文件夹',600,400)})">新增子文件夹</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:void(0)" title="新增子文件夹" onclick="$(function(){my_iframe('admin/folder-act_edit_rid_{*$rid*}_id_{*$item3.folder_id*}.htm','新增文件夹',600,400)})">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;<a class="del" href="admin/folder-act_del_rid_{*$rid*}_id_{*$item3.folder_id*}.htm" onclick="return confirm('确定要删除吗?')">删除</a></td>
                    </tr>
                    {*foreach name=list4 key=key item=item4 from=$item3.child*}
                    {*assign var=lock value=$item4.folder_lock*}
                    {*assign var=share value=$item4.folder_share*}
                    <tr>
                        <td align="center">{*$item4.folder_id*}</td>
                        <td style="padding-left:60px">├{*if $share == '1'*}<img src="public/images/admin/foldershare.png" hspace="2" align="absmiddle" />{*else*}<img src="public/images/admin/folder.png" hspace="2" align="absmiddle" />{*/if*}<a href="{*$cf_self_path*}-act_open_id_{*$item4.folder_id*}.htm?dpt={*$cf_dpt*}" class="edit">{*$item4.folder_title*}</a></td>
                        <td align="center">{*$item4.folder_order*}</td>
                        <td align="center"><a href="admin/folder-act_set_rid_{*$rid*}_id_{*$item4.folder_id*}_type_lock_value_{*$item4.folder_lock*}.htm">{*$cf_info_var.1.$lock*}</a></td>
                        <td align="center"><a href="admin/folder-act_set_rid_{*$rid*}_id_{*$item4.folder_id*}_type_share_value_{*$item4.folder_share*}.htm">{*$cf_info_var.2.$share*}</a></td>
                        <td align="center"><a href="{*$cf_self_path*}-act_open_id_{*$item4.folder_id*}.htm?dpt={*$cf_dpt*}" class="edit">查阅</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:void(0)" onclick="alert('已被限制')">新增子文件夹</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:void(0)" title="新增子文件夹" onclick="$(function(){my_iframe('admin/folder-act_edit_rid_{*$rid*}_id_{*$item4.folder_id*}.htm','新增文件夹',600,400)})">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;<a class="del" href="admin/folder-act_del_rid_{*$rid*}_id_{*$item4.folder_id*}.htm" onclick="return confirm('确定要删除吗?')">删除</a></td>
                    </tr>
                    {*/foreach*}
		   	{*/foreach*}
	      {*/foreach*}
                    {*/foreach*}
                </table>
                  </form>
                   <ul class="sharefile clearfix">
                {*foreach item=share from=$data_share name=share*}
                <li><a href="javascript:void(0)" title="查看{*$share.folder_creator*}共享詳情" onclick="$(function(){my_iframe('{*$cf_self_path*}-act_share_folder_{*$share.folder_uid*}.htm?id={*$item.child_id*}','查看共享詳情-{*$share.folder_creator*}',650,400)})" class="edit">{*$share.folder_creator*}</a></li>
                {*/foreach*}
                </ul>
                </div>
                </div>
                <div class="content_main_bottom">
                    <div class="content_main_bottom_left"></div>
                    <div class="content_main_bottom_right"></div>
                </div>
                
                <div>
               
				</div>
                {*/if*}

            </div>
             </td>
    </tr>
</table>
{*include file="template/admin_foot.htm"*}